export enum OrderRule {
  DESC = "descending",
  ASC = "ascending",
}

export enum SortField {
  CREATE_TIME = "createTime",
  UPDATE_TIME = "updateTime",
  ID = "id",
}

export interface PaginationParam<T> {
  pageNum?: number;
  pageSize?: number;
  [key: string]: any;
  model?: T;
}

export interface PaginationResult<T> {
  pageNum: number;
  pageSize: number;
  total: number;
  list: T[];
}

export interface CodeDesc<T> {
  code: T;
  desc: string;
}

export interface DeleteParams {
  ids?: string[] | number[];
  id?: ID;
}

export type ID = string | number;
